package com.intellagric.service.traceability.trace_produce_batch;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.module.traceability.ProduceBatchVo;
import com.intellagric.pojo.TraceProduceBatch;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2018/11/6
 * @DESC： 农产品批次管理服务接口
 */
public interface ProduceBatchService {

    //增加农产品库存信息
    ResponseMessage addProduceBatch(TraceProduceBatch produceBatch);

    //删除农产品库存信息
    ResponseMessage deleteProduceBatch(String id);

    //修改农产品库存信息
    ResponseMessage editProduceBatch(TraceProduceBatch produceBatch);

    //查询农产品库存信息
    TraceProduceBatch getProduceBatchById(String id);
    LayuiDataGridResult getProduceBatchList();
    LayuiDataGridResult getProduceBatchList(String createBy);
    LayuiDataGridResult getProduceBatchPage(int page ,int rows);
    LayuiDataGridResult getProduceBatchPage(int page ,int rows,String createBy);
    LayuiDataGridResult getProduceBatchByVo(int page ,int rows,ProduceBatchVo produceBatchVo);
    LayuiDataGridResult getProduceBatchListWithRelation(int page ,int rows,ProduceBatchVo produceBatchVo);
    
}
